﻿<div class="portlet light" ng-init="getModule()">
    <div class="portlet-title">
        <div class="caption">
            <div class="caption-subject font-green-haze bold">
                <span ng-show="!Id">添加模块</span>
                <span ng-show="Id">编辑模块</span>
            </div>
        </div>
    </div>
    <div class="portlet-body">
        <form class="form-horizontal" name="menu" novalidate ng-submit-force="true" ng-submit="btnSubmit_Click(menu.$valid)">
            <div class="row">
                <div class="form-group col-xs-12">
                    <label class="col-xs-4 control-label">模块：</label>
                    <div class="col-xs-8">
                        <input type="text" name="module" ng-model="module" class="form-control" placeholder="模块" required ng-maxlength="50" />
                    </div>
                </div>
            </div> 
            <div class="row">
                <div class="form-group col-xs-12">
                    <label class="col-xs-4 control-label">所有权限：</label>
                    <div class="col-xs-8"> 
                        <textarea class="form-control" style="height:70px" name="permissions" ng-model="permissions" placeholder="所有权限"></textarea>
                    </div>
                </div>
            </div> 
            <div class="row margin-top-10">
                <div class="col-sm-offset-4 col-sm-8">
                    <button type="submit" class="btn btn-primary btn-raised">保存</button>
                    <a class="btn btn-default btn-raised" ng-click="btnCancel_Click()">取消</a> 
                </div>
            </div>
        </form>
    </div>
</div>